<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'posting.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">


		<link rel="stylesheet" href="forum/css/style.css" type="text/css" />
		<script type="text/javascript" src="forum/ckeditor/ckeditor.js"></script>

<script type="text/javascript" src="forum/js/mycheck.js"></script>

		<script type="text/javascript">
			CKEDITOR.replace('content');
		</script>
	</head>

	<body>
		<jsp:include page="../include/header.jsp"></jsp:include>

		<input type="hidden" id="publishLimit"
			value="<s:property value="#session.userInfo.limits.publish"/>" />

		<table class="loginTable" border="0" align="center">

			<!--主题内容区-->
			<jsp:include page="../include/welcomeBanner.jsp"></jsp:include>

			<tr>
				<td class="currentPos" colspan="3">
					<div style="float: left; width: 400px">
						<img src="forum/img/current.png" />
						当前位置：
						<span class="pos"> <s:a action="init" namespace="/">首页</s:a>->
							<s:a action="scan!prepareToPost.action">发表话题</s:a> </span>
					</div>
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<hr size="4" color="#B5BAC7" style="margin-top: 0px;">
				</td>
			</tr>

			<tr>
				<td>
					<s:form>
						<table>
							<tr>
								<td>
									区域：
									<select id="sectionId">
										<s:iterator var="sec" value="#request.sections">
											<s:if test="#sec.sid==#request.selectedId">
												<option value="<s:property value="#sec.sid" />"
													selected="selected">
													<s:property value="#sec.sectionName" />
												</option>
											</s:if>
											<s:else>
												<option value="<s:property value="#sec.sid" />">
													<s:property value="#sec.sectionName" />
												</option>
											</s:else>
										</s:iterator>
									</select>

								</td>

								<td>
									标题
									<input id="title" type="text" />
								</td>
							</tr>
							<tr>
								<td colspan="3">
									<table border="1">
										<tr>
											<td>
												<textarea id="content" rows="2" cols="40" class="ckeditor"></textarea>
											</td>
										</tr>
										<tr>
											<td>
												<input type="button" value="发帖" onclick="checkInfo()">


											</td>
										</tr>
									</table>
								</td>
							</tr>

						</table>
					</s:form>

				</td>
			</tr>
		</table>

		<jsp:include page="../include/footer.jsp"></jsp:include>
	</body>
</html>
